package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.AChronicleMapper;
import com.ruoyi.system.domain.AChronicle;
import com.ruoyi.system.service.IAChronicleService;

/**
 * 历史记录Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-12-12
 */
@Service
public class AChronicleServiceImpl implements IAChronicleService 
{
    @Autowired
    private AChronicleMapper aChronicleMapper;

    /**
     * 查询历史记录
     * 
     * @param id 历史记录主键
     * @return 历史记录
     */
    @Override
    public AChronicle selectAChronicleById(Long id)
    {
        return aChronicleMapper.selectAChronicleById(id);
    }

    /**
     * 查询历史记录列表
     * 
     * @param aChronicle 历史记录
     * @return 历史记录
     */
    @Override
    public List<AChronicle> selectAChronicleList(AChronicle aChronicle)
    {
        return aChronicleMapper.selectAChronicleList(aChronicle);
    }

    /**
     * 新增历史记录
     * 
     * @param aChronicle 历史记录
     * @return 结果
     */
    @Override
    public int insertAChronicle(AChronicle aChronicle)
    {
        return aChronicleMapper.insertAChronicle(aChronicle);
    }

    /**
     * 修改历史记录
     * 
     * @param aChronicle 历史记录
     * @return 结果
     */
    @Override
    public int updateAChronicle(AChronicle aChronicle)
    {
        return aChronicleMapper.updateAChronicle(aChronicle);
    }

    /**
     * 批量删除历史记录
     * 
     * @param ids 需要删除的历史记录主键
     * @return 结果
     */
    @Override
    public int deleteAChronicleByIds(Long[] ids)
    {
        return aChronicleMapper.deleteAChronicleByIds(ids);
    }

    /**
     * 删除历史记录信息
     * 
     * @param id 历史记录主键
     * @return 结果
     */
    @Override
    public int deleteAChronicleById(Long id)
    {
        return aChronicleMapper.deleteAChronicleById(id);
    }

    @Override
    public List<String> cat(Long userid) {
        return aChronicleMapper.cat(userid);
    }

    @Override
    public List<String> hot() {
        return aChronicleMapper.hot();
    }


}
